#include <opencv2/opencv.hpp>
#include <iostream>

int main() {
    cv::Mat image = cv::imread("../pic.png", cv::IMREAD_GRAYSCALE);
    if (image.empty()) {
        std::cout << "无法加载图像！" << std::endl;
        return -1;
    }

    cv::Mat blurredImage;
    GaussianBlur(image, blurredImage, cv::Size(5, 5), 10.0);

    cv::imshow("Original Image", image);
    cv::imshow("Gaussian Blurred Image", blurredImage);

    cv::waitKey(0);
    return 0;
}